﻿using System;

namespace YunZuan.Models
{
    public class InventoryInfo 
    {

        #region 公共属性
          
        public int? ID { get; set; } 
        /// <summary>
        /// 二级客户临时为供货商
        /// </summary>
        public long? CustomerId { get; set; }
        /// <summary>
        /// 供应商代码
        /// </summary>
        public string Supplier { get; set; }
        //二级供应商
        public string SecondSN { get; set; }
        /// <summary>
        /// 供货地点
        /// </summary>
        public string Place { get; set; }

        public string SN { get; set; }

        /// <summary>
        /// 源货号
        /// </summary>
        public string OriginSN { get; set; }

        /// <summary>
        /// 形状：1.圆形，2.梨形，3.心形...
        /// </summary>
        public int Shape { get; set; }

        public decimal? Weight { get; set; }

        public string Color { get; set; }

        public string Clarity { get; set; }

        public string Cut { get; set; }

        /// <summary>
        /// 抛光
        /// </summary>
        public string Polish { get; set; }

        /// <summary>
        /// 对称
        /// </summary>
        public string Symmetry { get; set; }

        /// <summary>
        /// 对称
        /// </summary>
        public string Fluorescence { get; set; }


        /// <summary>
        /// 证书类型
        /// </summary>
        public string CertType { get; set; }

        /// <summary>
        /// 证书类型
        /// </summary>
        public string CertNo { get; set; }

        /// <summary>
        /// 台面羽状：None, fe, fe1, fe2, fe3
        /// </summary>
        public string Comments { get; set; }

        /// <summary>
        /// 奶色
        /// </summary>
        public string Milky { get; set; }


        /// <summary>
        /// 现货：0.否，1.是
        /// </summary>
        public short Stock { get; set; }

        /// <summary>
        /// OnShelves 上下架状态
        /// </summary>
        public int? OnShelves { get; set; }

        /// <summary>
        /// 彩钻 0.否,1.是
        /// /// 
        /// </summary>
        public short IsFancy { get; set; }
        /// <summary>
        /// PurchaseDiscountReturn 采购退点
        /// </summary>
        public decimal? PurchaseDiscountReturn { get; set; }

        /// <summary>
        /// PurchaseUSDPerCarat 采购每卡价
        /// </summary>
        public decimal? PurchaseUSDPerCarat { get; set; }


        /// <summary>
        /// PurchaseUSDPerGrain 采购总价
        /// </summary>
        public decimal? PurchaseUSDPerGrain { get; set; }

        /// <summary>
        /// PurchaseRMB
        /// </summary>
        public decimal? PurchaseRMB { get; set; }

        /// <summary>
        /// PurchaseExchange
        /// </summary>
        public decimal? PurchaseExchange { get; set; }

        /// <summary>
        /// PurchaseSupplier
        /// </summary>
        public string PurchaseSupplier { get; set; }

        /// <summary>
        /// 原退点.
        /// </summary>
        public decimal? SourceDiscountReturn { get; set; }

        /// <summary>
        /// 退点.
        /// </summary>
        public decimal? DiscountReturn { get; set; }


        /// <summary>
        /// 原单粒价$
        /// </summary>
        public decimal? SourceDolarPerGrain { get; set; }

        /// <summary>
        /// 源 美金USD/卡
        /// </summary>
        public decimal? SourceDolarPerCarat { get; set; }


        public decimal? DolarPerGrain { get; set; }

        public decimal? DolarPerCarat { get; set; }

        /// <summary>
        /// RMB/粒
        /// </summary>
        public decimal? RMBPerGrain { get; set; }

        /// <summary>
        /// RMB/Ct.
        /// </summary>
        public decimal? RMBPerCarat { get; set; }


        /// <summary>
        /// 最后操作的用户id
        /// </summary>
        public int? UserID { get; set; }

        public string ImportTransNo { get; set; }

        /// <summary>
        /// 数据状态：0.已删除, 1.正常, 2.订单中, 3.已售出
        /// </summary>
        public int? SysStatus { get; set; }

        public DateTime CreateTime { get; set; }

        public DateTime UpdateTime { get; set; }

        #endregion

        /// <summary>
        /// MeasurementMin
        /// </summary>
        public string MeasurementMin { get; set; }

        /// <summary>
        /// MeasurementMax
        /// </summary>
        public string MeasurementMax { get; set; }

        /// <summary>
        /// MeasurementHeight
        /// </summary>
        public string MeasurementHeight { get; set; }

        /// <summary>
        /// decimal(12,3)	全深比
        /// </summary>
        public decimal? DepthPct { get; set; }
        /// <summary>
        /// 	decimal(12,3)	台宽比
        /// </summary>
        public decimal? TablePct { get; set; }


        /// <summary>
        /// Measurement
        /// </summary>
        public string Measurement { get; set; }



        /// <summary>
        /// USD/Ct.
        /// </summary>
        public decimal? USDPerCarat { get; set; }

        /// <summary>
        /// USD/Grain.
        /// </summary>
        public decimal? USDPerGrain { get; set; }

        /// <summary>
        /// HA
        /// </summary>
        public string HA { get; set; }

        /// <summary>
        /// Hue
        /// </summary>
        public string Hue { get; set; }

        /// <summary>
        /// OtherComments
        /// </summary>
        public string OtherComments { get; set; }


        /// <summary>
        /// BlackDefect
        /// </summary>
        public string BlackDefect { get; set; }
        /// <summary>
        /// OtherDefect
        /// </summary>
        public string OtherDefect { get; set; }
        
        /// <summary>
        /// 肉眼
        /// </summary>
        public string EyeClean { get; set; }

        /// <summary>
        /// HDImageUrl
        /// </summary>
        public string HDImageUrl { get; set; }

        /// <summary>
        /// H3DImageUrl
        /// </summary>
        public string H3DImageUrl { get; set; }
        /// <summary>
        /// 采购买入价格
        /// </summary>
        public decimal? PurchasePrice { get; set; }
        /// <summary>
        /// 现货到货日期
        /// </summary>
        public string ArrivalTime { get; set; }

        /// <summary>
        /// 供应商买入价格RMB
        /// </summary>
        public decimal? SuppliersBuyRMB { get; set; }


        /// <summary>
        /// 供应商 货物源头
        /// </summary>

        public string SuppliersProvider { get; set; }


        public decimal? SpotPlus { get; set; }
 
        /// <summary>
        /// 货品备注
        /// </summary>
        public string GoodsComments { get; set; }

        public decimal? Rapnet { get; set; }

         
        /// <summary>
        /// 数据状态： 
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 付款状态：0未付 1，已付
        /// </summary>
        public int ReceiptStatus { get; set; }

        public string PurchaseTime { get; set; }
        public string ShipTime { get; set; }


        public string PurchaseAgent { get; set; }

        public string MediaID { get; set; }  


        private string _hasImage; 
        public string HasImage
        {
            get {
                if (_hasImage == null)
                    return "0";
                else
                    return _hasImage;
            }
            set { _hasImage = value; }
        }
        private string _hasVideo;
        public string HasVideo
        {
            get
            {
                if (_hasVideo == null)
                    return "0";
                else
                    return _hasVideo;
            }
            set { _hasVideo = value; }
        }
        private string _hasAtlas;
        public string HasAtlas
        {
            get
            {
                if (_hasAtlas == null)
                    return "0";
                else
                    return _hasAtlas;
            }
            set { _hasAtlas = value; }
        }
        public int Tag { get; set; } //tinyint(1) NOT NULL DEFAULT '0' COMMENT '标签',

        public string Remark { get; set; } //多用来借货备注
    }
}
